package cn.tedu.mall.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@TableName("tb_item_desc")
public class ItemDesc {
    @TableId
    private Long itemId;//itemId和item表中的id是同一个id
    private String itemDesc;//商品详情
    private Date created;
    private Date updated;
    public ItemDesc(){}

    public ItemDesc(Long itemId, String itemDesc, Date created, Date updated) {
        this.itemId = itemId;
        this.itemDesc = itemDesc;
        this.created = created;
        this.updated = updated;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    @Override
    public String toString() {
        return "ItemDesc{" +
                "itemId=" + itemId +
                ", itemDesc='" + itemDesc + '\'' +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }
}
